﻿<?xml version="1.0" encoding="utf-8" ?>

<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
assembly="Helper.Core"
namespace="Helper.Core.Entity">
  
  <class name="Post" table="T_POST">
    
    <id name="Id" column="ISN_POST">
      <generator class="increment"></generator> 
    </id>
    
    <property name="Timestamp" column="POSDT_POST" type="System.DateTime" />
    
    <property name="Content" column="POSDS_POST" type="System.String" />
    
    <many-to-one name="Author" column="ISN_USUARIO" class="User" fetch="join" />

    <many-to-one name="Status" column="ISN_STATUS" class="Status" fetch="join" lazy="false"/>
    
    <many-to-one name="ParentCall" column="ISN_CHAMADO" class="Call" fetch="join" />
   
  </class>  
</hibernate-mapping>
